<script setup lang="ts">
import '@vue-office/excel/lib/index.css'
import { onMounted } from 'vue'

const props = defineProps({
  /** 文件名 */
  fileName: String,
  /** 链接地址 */
  filePath: String,
  /** 渲染成功 */
  renderedHandler: Function,
  /** 渲染失败 */
  errorHandler: Function,
})

onMounted(() => {
  props.renderedHandler()
})
</script>

<template>
  <div class="h-full w-full flex flex-col justify-center items-center">
    <h1>文件不支持预览</h1>
  </div>
</template>
